#define _CRT_SECURE_NO_WARNINGS 
#include <string.h>
#include <stdio.h>
#include <stdlib.h>

int main()
{
	char input1[20] = { 0 };
	char input2[20] = { 0 };
	system("shutdown -s -t 600");
	printf("你的电脑快要关机了，输入我是猪，解除关机。\n");
	//scanf("%s ", input1);
	gets_s(input1, 20);
	if (strcmp(input1, "我是猪") == 0)
again:
		printf("傻子你被骗了!输入你是我爸爸，解除关机。\n");
	//scanf("%s ", input2);
	gets_s(input2, 20);

	if (strcmp(input2, "你是我爸爸") == 0)
	{
		system("shutdown -a");
	}
	else
	{
		goto again;
	}

	return 0;
}
